import './product.css';
import 'components/loading';
import {getData} from '../../../../api/getData';
import render from './items.art';
import {LAYOUT_ID, URL} from './config';

getData(URL)
	.then(data => {
		console.log(data);
		document.getElementById(LAYOUT_ID).innerHTML
			= render({
			items: data,
		});
	});
